package com.module.imagelib.glide.callback;

import android.graphics.Bitmap;

import com.module.imagelib.glide.utils.ImageFileUtils;


/**
 * Created by dell on 2018/12/3
 */
public class BitmapCallBack implements ICallBack<Bitmap> {
    @Override
    public void onLoaded(final Bitmap resource) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                ImageFileUtils.writeBitmap2File(resource, System.currentTimeMillis() + ".jpg");
            }
        }).start();
    }

}
